Chapter 18: Controlling Texture Mapping
Table Of Contents
Chapter 18: Controlling Texture Mapping
Understanding Texture-Mapping Control
Figure 18.1
The S and T directions of the texture coordinate system.
Figure 18.2
A small, square texture piece selected from the middle of a texture image.
Figure 18.3
A multisided texture piece selected from the middle of a texture image.
Figure 18.4
Texture coordinates used with a pizza texture image to select a piece and map it to a face.
Figure 18.5
The stages in mapping a texture to a face: A texture image with an area selected, the pieces of texture stamped out of the texture image, a face, and the face textured with the stamped-out piece of texture.
Figure 18.6
A texture image mapped sideways on a face.
Figure 18.7
A square piece of texture mapped on a rectangular face.
Figure 18.8
A square, stone-block texture image and the image stretched to fit each non-square face making up blocks above a curved doorway.
Wrapping Texture Coordinates
Figure 18.9
A texture alone and with a few of its neighbors on all sides.
Figure 18.10
Using texture coordinates spanning multiple texture copies: a selected region of the texture sheet and the stamped-out piece of texture.
Figure 18.11
A brick texture repeated across a wall shape using wrapped texture coordinates.
Clamping Texture Coordinates
Figure 18.12
A brick texture mapped to the center of a square with wrapped texture coordinates and with clamped texture coordinates.
Transforming Texture Coordinates
Figure 18.13
A portion of the infinite texture sheet with texture coordinates specifying a square the size and position of the original texture image, the texture coordinates translated to the right by 0.5 unites, and the stamped-out piece of texture mapped to a square.
Figure 18.14
The texture coordinates of a square texture cookie cutter rotated counterclockwise by 45.0 degrees, and the stamped-out piece of texture mapped to a square.
Figure 18.15
The texture coordinates of a square texture cookie cutter rotated counterclockwise by 45.0 degrees, and the stamped-out piece of texture mapped to a square.
Figure 18.16
The texture coordinates of a square texture cookie cutter scaled up by a factor of 2.0, and the stamped-out piece of texture mapped to a square.
Figure 18.17
The texture coordinates of a square texture cookie cutter scaled up bhy a factor of 2.0 and usinga center point of (0.5,0.5), and the stamped-out piece of texture mapped to a square.
Figure 18.18
Textures images of fan blades and a piece of protective grill rotated and scaled to fit on faces filling a window.
The Appearance Node Syntax
The ImageTexture Node Syntax
The PixelTexture Node Syntax
The TextureCoordinate Node Syntax
The TextureTransform Node Syntax
The IndexedFaceSet Node Syntax
The ElevationGrid Node Syntax
Experimenting with Texture-Mapping Control
Using Texture Coordinates
Figure 18.19b
A square face texture mapped using texture coordinates to select the texture image.
Figure 18.20b
A pizza texture with a slice selected mapped to a triangular face.
Using Texture Coordinates for Multiple Faces
Translating Texture Coordinates
Figure 18.22b
A four-screen video wall, each screen created by stamping out one fourth of a mountain texture image and using a TextureTransform node to translate the texture cookie cutter.
Scaling Texture Coordinates
Figure 18.23b
A small grillwork texture image repeated across a square face using texture-coordinate scaling.
Rotating Texture Coordinates
Figure 18.24
A rotated grillwork texture image mapped to a rectangular face to create a chain-link fence.
Transforming Textures on Primitive Shapes
Figure 18.25b
A brick texture repeatedly mapped to a Box node's shape using a TextureTransform node.
Controlling Texture Mapping of an Elevation Grid
Figure 18.26b
A texture of San Diego Bay mapped to a flat elevation grid. Compare with Figure 18.26c.
Figure 18.26c
A flat elevation grid using custom texture coordinates to reverse warping and invert the San Diego Bay image as it is applied. Compare with Figure 18.26b.
Animating Texture Transforms